﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Web.master" AutoEventWireup="true"
    CodeFile="OrderManage.aspx.cs" Inherits="Platform_OrderManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="../Scripts/YJPopup.js" type="text/javascript"></script>
    <script src="../Scripts/GiveTip.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        var MyPopup;
        $(function () {
            MyPopup = new YJPopup({
                contentDivID: "YJContentDiv",
                dragBarDivID: "YJDragBar",
                dragable: false,
                autoCreate: true
            });
        });
        function ShowInfo(ID) {
            MyPopup.Show("90%", $(document).height() - 150, "订单详情", "OrderDetail.aspx?ID=" + ID);
        }
        function ClosePopup() {
            MyPopup.Hide();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table style="border-collapse: separate" cellpadding="4" cellspacing="4">
        <tr>
            <td>
                订单号：
            </td>
            <td>
                <NC:FTextBox ID="OrderNo" runat="server" Width="200px" EnableCheck="false" />
            </td>
            <td>
                手机号：
            </td>
            <td>
                <NC:FTextBox ID="Mobile" runat="server" Width="120px" EnableCheck="false" />
            </td>
            <td>
                状态：
            </td>
            <td>
                <NC:FDropdownList ID="ddlState" runat="server">
                </NC:FDropdownList>
            </td>
            <td>
                <asp:Button ID="btnSearch" runat="server" class="btn btn3" OnClick="btnSearch_Click"
                    Text="查 找" />
            </td>
        </tr>
    </table>
    <NC:FGridView ID="FGridView1" runat="server" AutoCreateNumber="true" ShowFooter="true"
        Width="100%">
        <Columns>
            <asp:BoundField DataField="OrderNo" HeaderText="订单号" ItemStyle-Width="180px" />
            <asp:BoundField DataField="Mobile" HeaderText="手机号" ItemStyle-Width="100px" />
            <asp:BoundField DataField="TrueName" HeaderText="称呼" ItemStyle-Width="100px" />
            <asp:BoundField DataField="CarNumber" HeaderText="车牌号" />
            <asp:BoundField DataField="CarType" HeaderText="车型" />
            <asp:TemplateField HeaderText="内饰简洗" ItemStyle-Width="60px" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <%# Convert.ToInt32(Eval("Interior")) == 1 ? "√" : ""%>
                </ItemTemplate>
            </asp:TemplateField>
            <NC:FBoundColumn DataField="AddDate" DataType="DateTime" HeaderText="下单时间" ItemStyle-Width="150px" />
            <asp:TemplateField HeaderText="状态" ItemStyle-Width="50px">
                <ItemTemplate>
                    <%# NS.BLL.Systems.DictionaryService.GetDicName("订单状态", Convert.ToString(Eval("State")))%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="详情">
                <ItemStyle HorizontalAlign="Center" Width="60px" />
                <ItemTemplate>
                    <input id="btnView" type="button" value="查看" class="Gridbtn" onclick="ShowInfo('<%#Eval("OrderID") %>')" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </NC:FGridView>
</asp:Content>
